package com.ygqh.baby.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.model.wdt.qyb.WdtSyncLogistics;
import com.ygqh.baby.po.KidsOrderLogistics;
import com.ygqh.baby.po.KidsOrderLogisticsExample;

public interface KidsOrderLogisticsMapper {
	int countByExample(KidsOrderLogisticsExample example);

    int deleteByExample(KidsOrderLogisticsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(KidsOrderLogistics record);

    int insertSelective(KidsOrderLogistics record);

    List<KidsOrderLogistics> selectByExample(KidsOrderLogisticsExample example);

    KidsOrderLogistics selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") KidsOrderLogistics record, @Param("example") KidsOrderLogisticsExample example);

    int updateByExample(@Param("record") KidsOrderLogistics record, @Param("example") KidsOrderLogisticsExample example);

    int updateByPrimaryKeySelective(KidsOrderLogistics record);

    int updateByPrimaryKey(KidsOrderLogistics record);
    
    int countSuper(@Param ("orderId") String orderId,@Param("isSync")Boolean isSync);
    
    List<KidsOrderLogistics> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("orderId") String orderId,@Param("isSync")Boolean isSync);

	int addBatch(List<WdtSyncLogistics> list);

	int updateSyncSuccessByTid(@Param("orderList")List<String> orderList);

	int updateSyncSuccessById(@Param("idList")List<Long> idList);
}